def my_page(result, limit=None, offset=None):
    # 导出Excel请求处理
    # print('-- lim --', limit, '--off--', offset)
    if offset is None:
        return {'total': len(result), 'rows': result}
    elif (offset is not None) and (limit is not None):
        offset = int(offset)
        limit = int(limit)
        return {'total': len(result), 'rows': result[offset: offset + limit]}
    # else:
    #     print(' - - ', 'offset ', offset, 'limit', limit)
